package view;

import service.UserServiceImpl;

public class Check {
	
	  public boolean CheckPassword(int userid,String password) throws Exception{
	    	 UserServiceImpl users = new UserServiceImpl();
	    	 String check = password;
	    	
			if(users.finduserByID(userid)!=null){
				
	    	 if(check.equals( users.finduserByID(userid).getPassword()))
	    		 return true;
			}
				return false;
	    	
	     }
}
